package com.liu.design.structure.component;

/**
 * @author LIU
 * @version 1.0
 * @date 2024/5/6 11:51
 * @description TODO
 */
public class StoreDiscount implements DiscountStrategy{
    @Override
    public Double getTotal(double price) {
        // 满减，满500超出部分打6折
        return 500 + 0.6 * (price - 500);
    }
}
